import { View } from '@tarojs/components';
import React from 'react';
import styles from './index.module.scss';

const ProductLabel = ({ label }) => {
  if (!label) {
    return null;
  }

  return (
    <View className={`${styles.ProductLabel} customePageBackgroundStyle`}>
      <View className="txt">{label}</View>
    </View>
  );
};

export default ProductLabel;
